#include "TutorialState.h"

#include <main/Globals.h>
#include <main/MainConstants.h>
#include <states/GameStates.h>
#include <states/Level1State.h>
#include <states/StateManager.h>

#include <iostream>

void TutorialState::init() {
    std::cout << "Tutorial init" << std::endl;
    mFramesBeforeLeave = 1.0 * MAX_FPS;    
}

void TutorialState::update() {
    std::cout << "Tutorial init" << std::endl;
    if (mFramesBeforeLeave == 0) {
        std::cout << "Tutorial change state" << std::endl;
        Globals::gStateManager->changeState(*Globals::gGameStates->mLevel1State);
    } else {
        --mFramesBeforeLeave;
    }
}

void TutorialState::clear() {
    std::cout << "Tutorial clear" << std::endl;
}